function showAllRes(inDir,outDir)
%inDir='/Users/matthew/workspace/mfiles/projects/data/VNSpliXband/8sec/'
%outDir='/Users/matthew/workspace/mfiles/projects/data/VNSpliXband/8sec/'

filter='stat_*';
files=dir(fullfile(inDir,filter));

for i=1:length(files)
    fileName=files(i).name;
    load(fullfile(inDir,fileName));
    
    [res,band]=strtok(fileName,'_');
    [band,res]=strtok(band,'.')
    band=band(2:end);
    fig=showResVNS(stat,band);
    set(fig, 'Position', get(0,'Screensize'));
    saveas(gcf, fullfile(outDir,strcat('fig_',band)), 'png');
    close(fig);
end